<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
        <table class="layui-table">
            <colgroup>
                <col width="150">
                <col width="150">
                <col width="150">
            </colgroup>
            <thead>
                <tr>
                    <th class="text-center">商品名称</th>
                    <th class="text-center">规格</th>
                    <th class="text-center">单价</th>
                    <th class="text-center">库存</th>
                    <th class="text-center">实际库存</th>
                    <th class="text-center">差价</th>
                </tr>
            </thead>
            <tbody class="content">
                {foreach $content as $key=>$v}
                <tr>
                    <td class='text-center'>{$v.name}</td>
                    <td class='text-center'>{$v.sku}</td>
                    <td class='text-center'>{$v.price}</td>
                    <td class='text-center'>{$v.count}</td>
                    <td class='text-center'>
                        {$v.real_count|default=""}
                    </td>
                    <td class='text-center diff_price'>
                        <span class="color-red"><span class="color-red">{$v.diff_price??''}</span></span>
                    </td>
                </tr>
                {/foreach}
            </tbody>
        </table>
</form>
<script>
    window.form.render();
</script>